import request from '@/utils/request_zc'

export function getProductInspectionList ({
  serialNo,
  completionNo,
  planNo,
  jobName,
  productName,
  inspectionBatch,
  productionStartDate,
  productionEndDate,
  inspectionItem,
  inspectionResult,
  inspector,
  inspectionStartTime,
  inspectionEndTime,
  page, limit }) {
  return request({
    url: '/product/inspection/list',
    method: 'get',
    params: {
      serialNo,
      completionNo,
      planNo,
      jobName,
      productName,
      inspectionBatch,
      productionStartDate,
      productionEndDate,
      inspectionItem,
      inspectionResult,
      inspector,
      inspectionStartTime,
      inspectionEndTime,
      page,
      limit
    }
  })
}

export function getissueList () {
  return request({
    url: '/material/issue/list',
    method: 'get'
  })
}

export function editProductInspection (data) {
  return request({
    url: '/product/inspection/edit',
    method: 'post',
    data
  })
}

export function addProductInspection (data) {
  return request({
    url: '/product/inspection/add',
    method: 'post',
    data
  })
}


export function delProductInspection (data) {
  return request({
    url: '/product/inspection/del',
    method: 'post',
    data
  })
}

export function getComletionList () {
  return request({
    url: '/product/completion/list',
    method: 'get'
  })
}


export function getStandardList () {
  return request({
    url: '/inspection/standard/list',
    method: 'get'
  })
}